🍻 Show Flow & Word Counts
(26 actions, 22 KB)
0 Run Shortcut
_Get Flow & Word Counts
➔ dict
»
1
9
Input
:
[CurrentDate]
Workflow
:
{ "workflowIdentifier": "18147F90-431D-4A64-AB66-918A88186549", "workflowName": "_Get Flow & Word Counts", "isSelf": false }
1 Get Numbers from
[0 dict
as Dictionary.numberOfFlows
]
➔ numberOfFlows
»
2
3
2 If
[1 numberOfFlows]
>
0
3 Repeat
[1 numberOfFlows]
Times
4 Text
🍅
5 End Repeat Times »
6 Combine Text
[5 Repeat Results]
with
Custom
➔ numberOfFlows
»
16
21
7 Dictionary »
{ "topic": "Productivity" }
8 Run Shortcut
Get Random Journal Prompt Item(s)
»
12
21
Input
:
[7 Dictionary]
Workflow
:
{ "workflowIdentifier": "B9AD53B7-9843-4075-9386-FC80989F9C27", "workflowName": "Get Random Journal Prompt Item(s)", "isSelf": false }
9 Get Numbers from
[0 dict
as Dictionary.numberOfWords
]
➔ numberOfWords
»
10 ToolboxProForShortcuts > PluraliseIntent
➔ numberOfWords
»
16
21
word
:
word
countType
:
number
count
:
[9 numberOfWords]
output
:
numberDigit
11 If
[DeviceDetails
’s OS
]
is
iOS
12 Text-Case > TextCaseIntent »
16
text
:
[8 Shortcut Result]
format
:
italicBoldSans
ShowWhenRun
:
false
13 Run Shortcut
NASA - Get APOD Object
»
14
16
Workflow
:
{ "workflowIdentifier": "868B5BF8-8F1C-4471-AE00-B789F6C9B917", "workflowName": "NASA - Get APOD Object", "isSelf": false }
14 Get Contents of URL
[13 Shortcut Result
as Dictionary.imageURL
]
»
15 Get Images from
[14 Contents of URL]
»
16 ToolboxProForShortcuts > ShowNotificationIntent
subtitle
:
[6 numberOfFlows]
onTap
:
[13 Shortcut Result
as Dictionary.url
]
threadID
:
soundType
:
none
title
:
✍️
[10 numberOfWords]
body
:
[12 Formatted Text]
notificationID
:
🍻 Show Flow & Word Counts
attachment
:
[15 Images]
17 Lock Screen
18 Vibrate Device
19 End If ▵
11
20 If
[DeviceDetails
’s OS
]
is
macOS
21 Text »
[10 numberOfWords]
[6 numberOfFlows]
[8 Shortcut Result]
22 Lock-Screen-One > SetTextIntent
widget
:
widget1
text
:
[21 Text]
23 End If
24 End If ▵
2
25 Stop This Shortcut